class Person {
  constructor(name, age) {
    this.name = name;
    this.age = age;
  }
  sayHai() {
    console.log(`this.name,this.age`, this.name, this.age);
  }
  add(num) {
    console.log(`num`, num);
  }
}
export const personMix = {
  data() {
    return {
      phonenumber: '17608037341',
      person: new Person('张三', 18),
    };
  },
  methods: {
    personMix() {
      console.log(`this.phonenumber`, this.phonenumber);
    },
  },
  created() {
    this.personMix();
    this.person.add(111);
    this.person.sayHai();
  },
};
